import time
fin=open("26.txt")
s=fin.readlines()
t=time.time()
for i in range(len(s)-1):
    for j in range(len(s)-2,i-1,-1):
        if s[j+1]<s[j]:
            s[j], s[j+1]=s[j+1],s[j]
t2=time.time()
t=(t2-t)*1000
for i in range(len(s)):
    s[i]=int (s[i])
print("m1_sorted",round(t),"milliseconds")
import time
fin=open("26.txt")
s=fin.readlines()
t=time.time()
for i in range(len(s)-1):
    for j in range(len(s)-2,i-1,-1):
        if s[j+1]<s[j]:
            s[j], s[j+1]=s[j+1],s[j]
t2=time.time()
t=(t2-t)*1000
for i in range(len(s)):
    s[i]=int (s[i])
print("m2_sorted",round(t),"milliseconds")
import time
fin=open("26.txt")
s=fin.readlines()
t=time.time()
for i in range(len(s)-1):
    for j in range(len(s)-2,i-1,-1):
        if s[j+1]<s[j]:
            s[j], s[j+1]=s[j+1],s[j]
t2=time.time()
t=(t2-t)*1000
for i in range(len(s)):
    s[i]=int (s[i])
print("m3_sorted",round(t),"milliseconds")
